// 统一管理首页模块接口
import request from "@/utils/request";

enum API {
    HOSPITAL_URL='/hosp/hospital/',
    HOSPITALLEVELANDREGION_URL='/cmn/dict/findByDictCode/',
    HOSPITALINFO_URL='/hosp/hospital/findByHosname/'
}

// 获取医院的数据
export const reqHospital = (page:any,limit:any,hostype='',districtCode='')=>request.get<any,any>(API.HOSPITAL_URL + `${page}/${limit}?hostype=${hostype}&districtCode=${districtCode}`) 

// 获取医院等级与地区的接口
export const reqHospitalLevelAndRegion = (dictCode:any)=>request.get<any,any>(API.HOSPITALLEVELANDREGION_URL + dictCode)

// 搜索关键字获取医院数据的接口
export const reqHospitalInfo =(hosname:any)=>request.get<any,any>(API.HOSPITALINFO_URL + hosname)
































